﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Service.BusinessLayer.Entities;
using Service.DataAccess.DataAccessLogic;
using System.Data;
namespace Service.BusinessLayer.Logic
{
    public class XL_KhachHang
    {
        private KhachHang_DA khda = new KhachHang_DA();
        public void them(KhachHang kh)
        {
            khda.them(kh);
        }
        public void sua(KhachHang kh)
        {
            khda.sua(kh);
        }
        public void xoa(int makh)
        {
            khda.xoa(makh);
        }
        public DataSet layds()
        {
            DataSet dskh = new DataSet();
            dskh = khda.layds();
            return dskh;
        }
        public DataSet LayDS_Theo_TimKiem(string thongtin)
        {
            DataSet dskh = new DataSet();
            dskh = khda.LayDS_Theo_TimKiem(thongtin);
            return dskh;
        }
        public DataSet LayDS_CTNhapXuat_Theo_MaKH(int MaKH)
        {
            DataSet dskh = new DataSet();
            dskh = khda.LayDS_CTNhapXuat_Theo_MaKH(MaKH);
            return dskh;
        }
        public DataSet LayDS_TKKH_ChucNangTenhang_Loaiwash(string tenmh,string tenwash)
        {
            DataSet dskh = new DataSet();
            dskh = khda.LayDS_TKKH_ChucNangTenMH_LoaiWash(tenmh, tenwash);
            return dskh;
        }
        public DataSet LayDS_TKKH_ChucNangTenhang(string tenmh)
        {
            DataSet dskh = new DataSet();
            dskh = khda.LayDS_TKKH_ChucNangTenMH(tenmh);
            return dskh;
        }
        public DataSet LayDS_TKKH_ChucNangLoaiwash(string tenwash)
        {
            DataSet dskh = new DataSet();
            dskh = khda.LayDS_TKKH_ChucNangLoaiWash(tenwash);
            return dskh;
        }
    }
}
